Produced by Araxis Merge on 2021-05-13 09:09:05 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | 2021-05-13 09:09:05 +0000 | ||
| 2 | /Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Mageplaza_AjaxLayer/templates/layer | view.phtml | 2021-01-20 04:00:50 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 90 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | |||||
| 2 | /** | |||||
| 3 | * Mageplaza | |||||
| 4 | * | |||||
| 5 | * NOTICE OF LICENSE | |||||
| 6 | * | |||||
| 7 | * This source file is subject to the Mageplaza.com license that is | |||||
| 8 | * available through the world-wide-web at this URL: | |||||
| 9 | * https://www.mageplaza.com/LICENSE.txt | |||||
| 10 | * | |||||
| 11 | * DISCLAIMER | |||||
| 12 | * | |||||
| 13 | * Do not edit or add to this file if you wish to upgrade this extension to newer | |||||
| 14 | * version in the future. | |||||
| 15 | * | |||||
| 16 | * @category Mageplaza | |||||
| 17 | * @package Mageplaza_AjaxLayer | |||||
| 18 | * @copyright Copyright (c) Mageplaza (http://www.mageplaza.com/) | |||||
| 19 | * @license https://www.mageplaza.com/LICENSE.txt | |||||
| 20 | */ | |||||
| 21 | ?> | |||||
| 22 | <?php if ($block->canShowBlock()) : ?> | |||||
| 23 | <?php | |||||
| 24 | $helper = $this->helper(\Mageplaza\AjaxLayer\Helper\Data::class); | |||||
| 25 | $filters = $block->getFilters(); | |||||
| 26 | $layerConfig = $helper->getLayerConfiguration($filters); | |||||
| 27 | $filtered = count($block->getLayer()->getState()->getFilters()); | |||||
| 28 | ?> | |||||
| 29 | <div class="block filter" id="layered-filter-block" | |||||
| 30 | data-mage-init='{"collapsible":{"openedState": "active", "collapsible": true, "active": false, "collateral": { "openedState": "filter-active", "element": "body" } }}'> | |||||
| 31 | <div id="ln_overlay" class="ln_overlay"> | |||||
| 32 | <div class="loader"> | |||||
| 33 | <img src="<?= /** @noEscape */ $block->getViewFileUrl('images/loader-1.gif') ?>" alt="Loading..."> | |||||
| 34 | </div> | |||||
| 35 | </div> | |||||
| 36 | <div class="block-title filter-title" data-count="<?= /** @noEscape */ $filtered ?>"> | |||||
| 37 | <strong data-role="title"><?= /** @noEscape */ __('Shop By') ?></strong> | |||||
| 38 | </div> | |||||
| 39 | <div class="block-content filter-content"> | |||||
| 40 | <?= /** @noEscape */ $block->getChildHtml('state') ?> | |||||
| 41 | <?php if ($block->getLayer()->getState()->getFilters()) : ?> | |||||
| 42 | <div class="block-actions filter-actions"> | |||||
| 43 | <a href="<?= /** @noEscape */ $block->getClearUrl() ?>" class="action clear filter-clear"> | |||||
| 44 | <span><?= /** @noEscape */ __('Clear All') ?></span> | |||||
| 45 | </a> | |||||
| 46 | </div> | |||||
| 47 | <?php endif; ?> | |||||
| 48 | <?php $wrapOptions = false; ?> | |||||
| 49 | <?php foreach ($filters as $key => $filter) : ?> | |||||
| 50 | <?php if ($filter->getItemsCount()) : ?> | |||||
| 51 | <?php if (!$wrapOptions) : ?> | |||||
| 52 | <strong role="heading" aria-level="2" class="block-subtitle filter-subtitle"> | |||||
| 53 | <?= /** @noEscape */ __('Shopping Options') ?> | |||||
| 54 | </strong> | |||||
| 55 | <div class="filter-options" id="narrow-by-list" data-role="content"> | |||||
| 56 | <?php $wrapOptions = true; | |||||
| 57 | endif; ?> | |||||
| 58 | <?php $_class = $filter->getRequestVar() == 'cat' || $filter->getRequestVar() == 'size' || $filter->getRequestVar() == 'color' || $filter->getRequestVar() == 'price' ? 'active':'';?> | |||||
| 59 | <div data-role="ln_collapsible" class="filter-options-item <?php echo $_class;?>" | |||||
| 60 | attribute="<?= /** @noEscape */ $filter->getRequestVar() ?>"> | |||||
| 61 | <div data-role="ln_title" class="filter-options-title"><?= /** @noEscape */ __($filter->getName()) ?><span class="toggle"></span></div> | |||||
| 62 | <div data-role="ln_content" class="filter-options-content"> | |||||
| 63 | <?= /** @noEscape */ $block->getChildBlock('renderer')->setFilter($filter)->render($filter); ?> | |||||
| 64 | </div> | |||||
| 65 | </div> | |||||
| 66 | <?php endif; ?> | |||||
| 67 | <?php endforeach; ?> | |||||
| 68 | <?php if ($wrapOptions) : ?> | |||||
| 69 | </div> | |||||
| 70 | <?php else : ?> | |||||
| 71 | <script> | |||||
| 72 | require([ | |||||
| 73 | 'jquery' | |||||
| 74 | ], function ($) { | |||||
| 75 | $('#layered-filter-block').addClass('filter-no-options'); | |||||
| 76 | }); | |||||
| 77 | </script> | |||||
| 78 | <?php endif; ?> | |||||
| 79 | <?php if ($helper->ajaxEnabled()) : ?> | |||||
| 80 | <script type="text/x-magento-init"> | |||||
| 81 | { | |||||
| 82 | ".block-content.filter-content":{ | |||||
| 83 | "mpAjax": <?= /** @noEscape */ $layerConfig ?> | |||||
| 84 | } | |||||
| 85 | } | |||||
| 86 | </script> | |||||
| 87 | <?php endif; ?> | |||||
| 88 | </div> | |||||
| 89 | </div> | |||||
| 90 | <?php endif; ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.